<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- Import style -->
    <link rel="stylesheet" href="//unpkg.com/element-plus/dist/index.css" />
    <!-- Import Vue 3 -->
    <script src="//unpkg.com/vue@3"></script>
    <!-- Import component library -->
    <script src="http://unpkg.com/element-plus"></script>
</head>

<body>
    <div id="app">
        <el-row>
            <el-col :span="12">
                <el-switch v-model="isShow" size="large" active-text="显示" inactive-text="隐藏" />
                <p>入党发展流程:</p>
                <div v-show="isShow">
                    <img src="./img/1-1.png" style="width: 90%;">
                </div>
            </el-col>
            <el-col :span="12">
                <el-button type="success" @click="age++">增加年龄</el-button>
                <el-button type="danger" @click="age--">减少年龄</el-button>
                <p>年龄满足18岁,可以入党，目前年龄：{{age}}</p>
                <div v-show="age>=18">
                    <img src="./img/1-2.png" style="width: 90%;">
                </div>
            </el-col>
        </el-row>
    </div>
</body>
<script>
    const info = {
        data() {
            return {
                isShow: false,
                age: 18,
            }
        }
    }
    Vue.createApp(info).use(ElementPlus).mount("#app")
</script>
</html>